using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MoveJoyStick : JoyStick
{
    public PlayerContorl playerContorl;
    public override void onJoysticDown(Vector2 v, float r)
    {
        playerContorl.Move(v.x);
    }
    public override void onJoysticMove(Vector2 v, float r)
    {
        playerContorl.Move(v.x);
        
    }
    public override void onJoysticUp(Vector2 v, float r)
    {
        playerContorl.Move(0);
    }
}
